package com.jn.gsondemo.entity;

import java.util.List;

public class School {
   private String name;
   private String address;

   private List<Student> students;

   public List<Student> getStudents() {
      return students;
   }

   public void setStudents(List<Student> students) {
      this.students = students;
   }

   public String getName() {
      return name;
   }

   public void setName(String name) {
      this.name = name;
   }

   public String getAddress() {
      return address;
   }

   public void setAddress(String address) {
      this.address = address;
   }

   @Override
   public String toString() {
      return "School{" +
              "name='" + name + '\'' +
              ", address='" + address + '\'' +
              ", students=" + students +
              '}';
   }
}
